//
//  PeriodPopOverView.h
//  safeLady
//
//  Created by Justsoso on 2017/7/17.
//  Copyright © 2017年 xmy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>

typedef NS_ENUM(NSUInteger,kArrowDirection){
    
    //箭头位置
    
    kArrowDirectionLeft1=1,//左上
    kArrowDirectionLeft2,//左中
    kArrowDirectionLeft3,//左下
    kArrowDirectionRight1,//右上
    kArrowDirectionRight2,//右中
    kArrowDirectionRight3,//右下
    kArrowDirectionUp1,//上左
    kArrowDirectionUp2,//上中
    kArrowDirectionUp3,//上右
    kArrowDirectionDown1,//下左
    kArrowDirectionDown2,//下中
    kArrowDirectionDown3,//下右
    
};
@interface PeriodPopOverView : UIView
@property (nonatomic, strong) UIView *backView;

-(instancetype)initWithOrigin:(CGPoint)origin Width:(CGFloat)width Height:(float)height Direction:(kArrowDirection)direction;//初始化

-(void)popView;//弹出视图
-(void)dismiss;//隐藏视图

@end
